home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5241 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  37 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c++
  2. Path: utnetw.utoledo.edu!news
  3. From: Jarek Sacha <jsacha@uoft02.utoledo.edu>
  4. Subject: Seriuos bug in BC4.52 !!!
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <31127033.BD3@uoft02.utoledo.edu>
  7. Sender: news@utnetw.utoledo.edu (News Manager)
  8. Content-Transfer-Encoding: 7bit
  9. Cc: eisc <jaroslaw.sacha@eisc.org>
  10. Organization: University of Toledo
  11. Mime-Version: 1.0
  12. Date: Fri, 2 Feb 1996 20:12:35 GMT
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14.  
  15. Hi,
  16. It is the following simple code couses "Floating Point: Overflow" in 
  17. BC450RTL.DLL
  18.  
  19. double x;
  20. ifstream inF("x.txt");
  21. if(inF)
  22.    inF >> x;
  23.  
  24. Content on x.txt:
  25. 1.0 2
  26.  
  27. The error apears if the file x.txt floating point numbers. If there are 
  28. only integers the program works fine, for instance file containing:
  29. 1 2
  30. is read without problems. The bug shows only if the program using OWL 
  31. under Windows95. The same executable runing under Windows3.1 works fine.
  32. I wonder if somebody had similar problems.
  33. Regards,
  34.  
  35. Jarek
  36. Jarek.Sacha@EISC.org
  37.